using System;
using System.IO;

namespace ByteShower
{
    partial class Program
    {
        static void RenameFile(string str, string start = "0")
        {
            string head = str.Substring(0, str.IndexOf('#'));
            string end = str.Substring(str.LastIndexOf('#') + 1);
            var files = Directory.EnumerateFiles(path);
            int i = int.Parse(start);
            foreach(var file in files)
            {
                File.Move(file, $"{path}\\{head}{i}{end}");
                i++;
            }
        }
    }
}